﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.IO;

namespace Skyhook.Core.Xml
{
    class XmlDocumentWithFileName
    {
        public string FileName { get; private set; }
        public XmlDocument Document { get; private set; }

        public XmlDocumentWithFileName(string filename)
        {
            FileName = filename;

            Document = new XmlDocument();

            try
            {
                Document.Load(filename);
            }
            catch (Exception ex)
            {
                //Console.WriteLine("Error in " + this.GetType().Name + " while constructing - " + ex.Message + " filename = " + Path.GetFileName(FileName));
            }
        }
    }
}
